//
//  UIView+LZYEmptyView.h
//  LZYEmptyViewDemo
//
//  Created by bjhj on 17/3/27.
//  Copyright © 2017年 刘占宇个人项目. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LZYErrorPageView , LZYBlankPageView;
@interface UIView (LZYEmptyView)

- (void)configReloadAction:(void(^)())block;
//LZYErrorPageView
@property (nonatomic,strong) LZYErrorPageView *errorPageView;
- (void)showErrorPageView;
- (void)hideErrorPageView;

//LZYBlankPageView;
@property (nonatomic,strong) LZYBlankPageView *blankPageView;
- (NSInteger)showBlankPageViewWithCount:(NSArray *)datalist reloadAction:(SEL)action WithTarget:(id)target;
- (NSInteger)showBlankPageViewWithCount:(NSArray *)datalist;
- (void)hideBlankPageView;

@end

#pragma mark --- LZYErrorPageView
@interface LZYErrorPageView : UIView
@property (nonatomic,copy) void(^didClickReloadBlock)();
@end

#pragma mark --- LZYBlankPageView
@interface LZYBlankPageView : UIView
@property (nonatomic,copy) void(^didClickReloadBlock)();
@end
